package com.sun.alen.stagetwo.PaySystem;

//抽象类
public abstract class AbstractPay {
    //包含支付相关的通用属性和抽象方法
    private String payerName;
    private String payerID;
    private double amount;
    
    public String getPayerName() {
        return payerName;
    }
    
    public void setPayerName(String payerName) {
        this.payerName = payerName;
    }
    
    public String getPayerID() {
        return payerID;
    }
    
    public void setPayerID(String payerID) {
        this.payerID = payerID;
    }
    
    public double getAmount() {
        return amount;
    }
    
    public void setAmount(double amount) {
        this.amount = amount;
    }
    
    public abstract void pay();
    public abstract void refund();
}